package com.sunwayworld.basemodule.rm.materialsecondarylibrary.resource;

import com.alibaba.fastjson.JSONObject;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sunwayworld.basemodule.rm.materialsecondarylibrary.bean.LimsMaterialSecondaryInventoryBean;
import com.sunwayworld.basemodule.rm.materialsecondarylibrary.service.LimsMaterialSecondaryInventoryService;
import com.sunwayworld.framework.support.base.resource.GenericResource;

@RequestMapping("/secure/basemodule/rm/material-secondary-inventorys")
public interface LimsMaterialSecondaryInventoryResource extends GenericResource<LimsMaterialSecondaryInventoryService, LimsMaterialSecondaryInventoryBean, Long> {

    /**
     * 盘存
     *
     * @param wrapperBean
     * @return
     */
    @PostMapping("/inventory")
    JSONObject inventory(RestJsonWrapperBean wrapperBean);

    /**
     * 出库
     *
     * @param wrapperBean
     * @return
     */
    @PostMapping("/checkout")
    JSONObject checkout(RestJsonWrapperBean wrapperBean);
}
